Skip to content

PostCSS: Use postcss-preset-env to polyfill newer CSS syntax to older browser targets #8567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Apr 30, 2024

see https://github.com/csstools/postcss-plugins/tree/1ac4688fdcc27fa894cb87b0074df6d873635cba/plugin-packs/postcss-preset-env

This ensures that we are using the right vendor prefixes where necessary (e.g. -webkit-text-decoration in addition to text-decoration).

This change also allows us to use the light-dark() CSS function to implement a dark UI mode in a more ergonomic way.

…er browser targets

see https://github.com/csstools/postcss-plugins/tree/1ac4688fdcc27fa894cb87b0074df6d873635cba/plugin-packs/postcss-preset-env

This ensures that we are using the right vendor prefixes where necessary (e.g. `-webkit-text-decoration` in addition to `text-decoration`).
@Turbo87 Turbo87 added A-frontend 🐹 C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear labels Apr 30, 2024
@Turbo87 Turbo87 merged commit 748e265 into rust-lang:main Apr 30, 2024
@Turbo87 Turbo87 deleted the preset-env branch April 30, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant